﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
using System.Windows;

namespace IntoTheVoid.Converters
{
	internal class DownLoadGemmetryConverter: IValueConverter
	{
		ResourceDictionary Dic = new ResourceDictionary { Source = new Uri("Resource/Geometries.xaml", UriKind.Relative) };

		object IValueConverter.Convert(object value, Type targetType, object parameter, CultureInfo culture)
		{
			var isProgressGridEnable = (bool)value;
			return isProgressGridEnable ? Dic["MenuRightGeometry"] : Dic["PauseGeometry"];
		}

		object IValueConverter.ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
		{
			return true;
		}
	}
}
